$package('itsm.news');

itsm.news.newsDetail=function(){
	
	return {
		loadNewInfo:function(){
			$.post('news!findNewsById.action','newsQueryDTO.newId='+newsDetailId,function(data){
				if(data!=null){
					$('#newsDetail_topic').text(data.topicName);
					$('#newsDetail_category').text(data.keyword);
					if(data.top)
						$('#newsDetail_top').text('是');
					else
						$('#newsDetail_top').text('否');
					
					$('#newsDetail_keyword').text(data.keyword);
					
					$('#newsDetail_title').text(data.title);
					
					$('#newsDetail_content').html(data.content);
				}
			});
		},
		init:function(){
			itsm.news.newsDetail.loadNewInfo();	
			
		}
	}
}();
$(function(){itsm.news.newsDetail.init()})